﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.ReworkManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ReworkManagement.ReworkTypeVMs
{
    public partial class ReworkTypeTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._ReworkType._ReworkTypeCode")]
        public ExcelPropety ReworkTypeCode_Excel = ExcelPropety.CreateProperty<ReworkType>(x => x.ReworkTypeCode);
        [Display(Name = "_Model._ReworkType._TypeDesc")]
        public ExcelPropety TypeDesc_Excel = ExcelPropety.CreateProperty<ReworkType>(x => x.TypeDesc);
        [Display(Name = "_Model._ReworkType._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<ReworkType>(x => x.CreateTime, true);
        [Display(Name = "_Model._ReworkType._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<ReworkType>(x => x.UpdateTime, true);
        [Display(Name = "_Model._ReworkType._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<ReworkType>(x => x.CreateBy);
        [Display(Name = "_Model._ReworkType._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<ReworkType>(x => x.UpdateBy);
        [Display(Name = "_Model._ReworkType._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<ReworkType>(x => x.IsValid);
        [Display(Name = "_Model._ReworkType._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<ReworkType>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class ReworkTypeImportVM : BaseImportVM<ReworkTypeTemplateVM, ReworkType>
    {
            //import

    }

}